//teacher
let mongoose = require('mongoose');
let Teacher = new mongoose.Schema({
    name: String,
    courseId:[{
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'ScoreModel'  
    }]
});
let Score = new mongoose.Schema({
    scoreId:Number
})
//建立score与模型的关系
let TeacherModel = mongoose.model('TeacherModel',Teacher, 'teacher');
let ScoreModel = mongoose.model('ScoreModel',Score, 'score');
let TeacheraddModel=mongoose.model('TeacheraddModel',Teacher, 'teacher');
let TeacherdelateModel=mongoose.model('TeacherdelateModel',Teacher, 'teacher');
let TeacherchangeModel=mongoose.model('TeacherchangeModel',Teacher, 'teacher');